package com.example.service;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.dto.ApiResponse;
import com.example.dto.QuestionRequest;
import com.example.entity.Question;

public interface QuestionService {
    
    /**
     * 添加试题
     */
    ApiResponse<?> addQuestion(QuestionRequest questionRequest);
    
    /**
     * 更新试题
     */
    ApiResponse<?> updateQuestion(Long id, QuestionRequest questionRequest);
    
    /**
     * 删除试题
     */
    ApiResponse<?> deleteQuestion(Long id);
    
    /**
     * 获取试题详情
     */
    Question getQuestionById(Long id);
    
    /**
     * 获取所有试题
     */
    List<Question> getAllQuestions();
    
    /**
     * 分页查询试题
     */
    IPage<Question> getQuestionsByPage(int page, int size, String type, Integer difficulty, String knowledgePoint);
    
    /**
     * 批量导入试题
     */
    ApiResponse<?> importQuestions(List<QuestionRequest> questions);
} 